export default {
    namespaced: true,
    state: {
        catagtory: [
            { id: 1, name: "开发者资讯" },
            { id: 2, name: "ios" },
            { id: 3, name: "c++" },
            { id: 4, name: "android" },
            { id: 5, name: "css" },
            { id: 6, name: "数据库" },
            { id: 7, name: "区块链" },
            { id: 8, name: "go" },
            { id: 9, name: "产品" },
            { id: 10, name: "后端" },
            { id: 11, name: "linux" },
            { id: 12, name: "人工智能" },
            { id: 13, name: "php" },
            { id: 14, name: "JavaScript" },
        ],
        currentCatagtory: '1'
    },
    mutations: {
        // 更新分类数据
        updateCatagtory(state, payload) {
            state.catagtory = payload
        },
        updateCurrentCatagtory(state, payload) {
            state.currentCatagtory = payload
        }
    },

}